const getCrossBorderVipConsumeRecord = require('./getCrossBorderVipConsumeRecord/index')
const getCrossBorderVipConsumeDetail = require('./getCrossBorderVipConsumeDetail/index')
const exportCrossBorderVipConsumeRecord = require('./exportCrossBorderVipConsumeRecord/index')
const getcrossBorderVipUpgradeRecord = require('./getcrossBorderVipUpgradeRecord/index')
const getcrossBorderVipUpgradeDetail = require('./getcrossBorderVipUpgradeDetail/index')
const getCrossBorderVipDiscountRecord = require('./getCrossBorderVipDiscountRecord/index')
const getCrossBorderVipDiscountDetail = require('./getCrossBorderVipDiscountDetail/index')
const exportCrossBorderVipDiscountRecord = require('./exportCrossBorderVipDiscountRecord/index')
const getCrossBorderVipCouponRecord = require('./getCrossBorderVipCouponRecord/index')
const getCrossBorderVipCouponDetail = require('./getCrossBorderVipCouponDetail/index')
const exportCrossBorderVipCouponRecord = require('./exportCrossBorderVipCouponRecord/index')
const getCouponChart = require('./getCouponChart/index')

// 云函数入口函数
exports.main = async (event, context) => {
    switch (event.type) {
        case 'getCrossBorderVipConsumeRecord':
            return await getCrossBorderVipConsumeRecord.main(event, context);
        case 'getCrossBorderVipConsumeDetail':
            return await getCrossBorderVipConsumeDetail.main(event, context);
        case 'exportCrossBorderVipConsumeRecord':
            return await exportCrossBorderVipConsumeRecord.main(event, context);
        case 'getcrossBorderVipUpgradeRecord':
            return await getcrossBorderVipUpgradeRecord.main(event, context);
        case 'getcrossBorderVipUpgradeDetail':
            return await getcrossBorderVipUpgradeDetail.main(event, context);
        case 'getCrossBorderVipDiscountRecord':
            return await getCrossBorderVipDiscountRecord.main(event, context);
        case 'getCrossBorderVipDiscountDetail':
            return await getCrossBorderVipDiscountDetail.main(event, context);
        case 'exportCrossBorderVipDiscountRecord':
            return await exportCrossBorderVipDiscountRecord.main(event, context);
        case 'getCrossBorderVipCouponRecord':
            return await getCrossBorderVipCouponRecord.main(event, context);
        case 'getCrossBorderVipCouponDetail':
            return await getCrossBorderVipCouponDetail.main(event, context);
        case 'exportCrossBorderVipCouponRecord':
            return await exportCrossBorderVipCouponRecord.main(event, context);
        case 'getCouponChart':
            return await getCouponChart.main(event, context);
    }
}